import React, { PropTypes } from 'react';
import { routerRedux } from 'dva/router';
import { connect } from 'dva';
import TermsList from '../../components/Answer/Terms';

function Terms({ location, dispatch, answer }) {

  const { termsList } = answer;
  const termsListProps = {
    termsList,
    updateOneTerm(data){
      dispatch({
        
      })
    }
  }

  return (
    <div className='content-inner'>
      <TermsList {...termsListProps} />
    </div>
  )
}
Terms.propsTypes = {
  terms: PropTypes.object,
  location: PropTypes.object,
  dispatch: PropTypes.func
}

function mapStateToProps({ answer }) {
  return { answer }
}

export default connect(mapStateToProps)(Terms)
